package com.atguigu.guli.service.edu.service.impl;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.base.result.ResultCodeEnum;
import com.atguigu.guli.service.edu.service.OssFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class OssFeignClientFallback implements OssFeignClient {
    @Override
    public R test(ResultCodeEnum codeEnum) {
        System.out.println("错误了");

        return R.error().message("测试失败");
    }

    @Override
    public R deleteFile(String path, String module) {
        log.error("远程访问oss删除文件失败,文件路径:{},文件模块:{}" , path , module);
        return R.error().message("删除文件失败");
    }
}
